<%@ page isErrorPage="true" %>
<%@ include file="/WEB-INF/jspf/directive/taglib.jspf" %>

<html>

<c:set var="title">
	<fmt:message key="error.title.text" />
</c:set>
<%@ include file="/WEB-INF/jspf/head.jspf" %>

<body>
	<div class="container">
		<h2>
			<fmt:message key="error.label.error" />
		</h2>
	
		<c:set var="code" value="${requestScope['javax.servlet.error.status_code']}"/>
		<c:set var="message" value="${requestScope['javax.servlet.error.message']}"/>
		
		<c:if test="${not empty code}">
			<h3><fmt:message key="error.label.code" />: <c:out value="${code}"/></h3>
		</c:if>			
		
		<c:if test="${not empty message}">
			<h3><c:out value="${message}"/></h3>
		</c:if>
		
		<%-- if get this page using forward --%>
		<c:if test="${not empty errorMessage}">
			<p class="lead"><c:out value="${errorMessage}"/></p>
		</c:if>	
		
		<br>
		<a href="javascript: history.go(-1)" class="btn btn-block btn-large">
			<fmt:message key="error.button.back" />
		</a>
	</div>
</body>
</html>